﻿@model Twitter.Models.TwitterSettingsPartRecord
@using Orchard.Utility.Extensions;
@using Twitter.Models;

<fieldset>
    <legend>@T("Twitter")</legend>
    <div>
        <label for="@Html.FieldIdFor(m => m.Username)">@T("Api key")</label>
        @Html.TextBoxFor(m => m.Username, new { @class = "textMedium" })
        @Html.ValidationMessage("Username", "*")
		@if(!String.IsNullOrEmpty(Model.Username)){ 
			@Html.Link(T("Check key").Text, Url.Action("CheckUsername", "Admin", new { area = "Twitter", returnUrl = Request.ToUrlString() }))
		}
		<span class="hint">@T("API key for <a href=\"http://Twitter.com/register.php\">Profile Daddy</a> API.")</span>
    </div>
</fieldset>